<?php

class m131008_103816_create_device extends CDbMigration {

	private $_table = 'devices';
	
	public function safeUp() {
		$columns = array(
			'id'=>'pk',
			'sequence'=>'integer',
			'name'=>'string',
			'createdAt'=>'datetime',
			'updatedAt'=>'datetime',
		);
		$this->createTable($this->_table, $columns);
	}

	public function safeDown() {
		$this->dropTable($this->_table);
	}

}